package com.haidong.service;

import com.haidong.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

// 给该服务接口加上事务管理能力,拥有该接口所有实现类方法都可回滚
@Transactional
public interface BookService {
    public boolean save(Book book);
    public boolean update(Book book);
    public boolean delete(Integer id);
    public Book getById(Integer id);
    public List<Book> getAll();
}
